#include "Sound.h"

int Sound::PlayMusic() {
        // start the sound engine with default parameters
        ISoundEngine* engine = createIrrKlangDevice();

        if (!engine)
                return 0; // error starting up the engine

        // play some sound stream, looped --> , true
        //engine->play2D("Media\\001.ogg", true);
		
        char i = 0;
		
        while(i != 'q')
        {
                std::cout << "Press any key to play some sound, press 'q' to quit.\n";

                // play a single sound
                engine->play2D("Media/001.ogg");

                std::cin >> i; // wait for user to press some key
        }
		
        engine->drop(); // delete engine
        return 0;
 }